package com.banciyuan.bcywebview.biz.main.discover.topwork;


import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;

import com.banciyuan.bcywebview.utils.intent.gotoUtil;

public class NovelTopWorkActivity extends TopWorkActivity {
    @Override
    protected Fragment getTopWorkFragment(int position) {
        Fragment currentFragment = mTopWorkFragments.get(position);
        if (null == currentFragment) {
            currentFragment = new NovelTopWorkFragment();
            Bundle bundle = new Bundle();
            bundle.putString(gotoUtil.INTENT_VALUE_ONE, mTypeSets.get(position).getType());
            bundle.putString(gotoUtil.INTENT_VALUE_THREE, date);
            currentFragment.setArguments(bundle);
            mTopWorkFragments.put(position, currentFragment);
        }
        return currentFragment;
    }

    @Override
    protected void setTabLayoutMode() {
        mTabLayout.setTabMode(TabLayout.MODE_FIXED);
    }
}
